package cn.sixmillions.demo01.entity;

/**
 * 班级
 */
public class Clazz {

    /**
     * 班级id
     */
    private Integer id;

    /**
     * 班级名称
     */
    private String name;

    /**
     * 班级描述
     */
    private String desc;

    public Clazz() {
        System.out.println("clazz无参构造");
    }

    public Clazz(Integer id, String name, String desc) {
        System.out.println("clazz有参构造");
        this.id = id;
        this.name = name;
        this.desc = desc;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "Clazz{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }
}
